import { defineConfig } from '@umijs/max';
import routes from './routes';

export default defineConfig({
  title: false,
  antd: {},
  access: {},
  model: {},
  initialState: {},
  request: {},
  // layout: {
  //   // 指定自定义布局组件
  //   layout: '@/layouts/BasicLayout', // 替换为你的布局文件路径
  // },
  routes,
  plugins: [],
  // https://umijs.org/zh-CN/plugins/plugin-locale
  locale: {
    default: 'zh-CN',
    antd: true,
    baseNavigator: true,
    baseSeparator: '-',
    useLocalStorage: true,
  },
  mock: {
    exclude: ['mock/**/_*.ts', 'mock/_*/**/*.ts'],
  },
  // proxy: {
  //   '/api': {
  //     // target: 'http://10.0.30.2:31125',
  //     changeOrigin: true,
  //     pathRewrite: { '^/api': '' },
  //     timeout: 30000, // 增加超时时间到30秒
  //   },
  // },
  npmClient: 'npm',
});
